#ifndef _CAR_H
#define _CAR_H
#include "gd32f4xx.h"
#include "wheel.h"

typedef enum{
	car_mini = -1,
	car_stop = 0,
	car_forward,
	car_back,
	car_left,
	car_right,
	car_forward_left,
	car_forward_right,
	car_back_left,
	car_back_right,
	car_turn_left,
	car_turn_right,
	
	car_max
}e_car_direction;
typedef struct{
	wheel_type car_wheels[4];
	e_car_direction car_direction;
}car_type;

int car_init(car_type *pCar);

int car_move(car_type *pCar, e_car_direction direction);

#endif
